import store from "../index-a";

// 动作创建函数
export function increment() {
  return {
    type: "increment",
  };
}
export function decrement() {
  return {
    type: "decrement",
  };
}

// 绑定了的动作创建函数
export function boundIncrement() {
  store.dispatch(increment());
}
export function boundDecrement() {
  store.dispatch(decrement());
}

export function aa(dispatch, getState) {
  setTimeout(() => {
    dispatch(increment());
  }, 1000);
}
